<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="from-dt-add" name="from-dt-add">
        <div class="form-group">	
            <label class="col-sm-3 control-label">编号名称：</label>
            <div class="col-sm-8">
                <input id="tableName" name="tableName" class="form-control" type="text" required>
            </div>
        </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">最大人数：</label>
                <div class="col-sm-8">
                    <input id="seat" name="seat" class="form-control" type="number" required>
                </div>
            </div>
    </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
    	var prefix = ctx + "/restaurant/dinnertable";
	
	    $("#from-dt-add").validate({
	    	onkeyup: false,
	        rules: {
	            
	        },
	        messages: {
	            
	        },
	        focusCleanup: true
	    });
	    
	    function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#from-dt-add').serialize());
	        }
	    }
    </script>
</body>
</html>
